﻿<?php include (dirname(__FILE__)."/include/header.php"); ?>
<html>
<head>
<head><meta property="wb:webmaster" content="8b29d16bef87e55e" /></head>
</head>
<body>
<?php 
//逆向思维
    date_default_timezone_set('PRC');
	$time=strtotime(date('Y:m:d H:i:s',time()));
	$mintime1=strtotime(date('Y:m:d 01:00:00'));
	$maxtime1=strtotime(date('Y:m:d 08:00:00'));
    if($time-$mintime1<=$maxtime1-$mintime1){
	if($time>=$mintime1&&$time<=$maxtime1){ //这个if条件必不可少....
	// echo "<script>location.href='home.html';</script>";
}
}
;
?>
<?php $menu="home";?>
<div class="container">
  <style type="text/css">
<!--
a:link {
 text-decoration: none;
}
a:visited {
 text-decoration: none;
}
a:hover {
 text-decoration: none;
}
a:active {
 text-decoration: none;
}
#back-to-top { margin-left:953px;}
-->
</style>
<?php 
/*$id=$_GET['id'];
// echo $id;
if($id>0){
$query="select * from zy_businessarea where id=".$id."";
//echo $query;
$rs=mysql_query($query);
if($row=mysql_fetch_array($rs)){
	$level=$row['level'];
	if($level==1){
	 $bid1=$id;
	}
	
}
}*/
$id1=$_GET['id1'];
if($id1>0){
$query1="select * from zy_businessarea where id =".$id1;
$rs1=mysql_query($query1);
if($row1=mysql_fetch_array($rs1)){
	$level=$row1['level'];
	if($level==2){
	$bid2=$id1;
	}
}
}
$id2=$_GET['id2'];
if($id2>0){
	$query2="select * from zy_businessarea where id =".$id2;
	//echo $query2;
	$rs2=mysql_query($query2);
	while($row2=mysql_fetch_array($rs2)){
			$level=$row2['level'];
		if($level==3){
		 $bid3=$id2;
		// echo $bid3;
		}
		$query3="select * from zy_businessarea where id=".$row2['parentId']."";
		//echo $query3;
		$rs3=mysql_query($query3);
		while($row3=mysql_fetch_array($rs3)){
		  $level=$row3['level'];
		  if($level==2){
		  	$bid2=$row3['id'];
		  //	echo $bid2;
		  }
		}
	}
}
?>
<?php   
  		 	$id2=$_GET['id2'];
if($id2>0){
  		 		 $sql="select * from zy_businessarea where id =".$id2;
  		 		// echo $sql;
  		 		$result=mysql_query($sql);
  		 		while($rs=mysql_fetch_array($result)){
  		 			$sql2="select * from zy_businessarea where id =".$rs['parentId']."";
  		 			// echo $sql2;
  		 			$result2=mysql_query($sql2);
  		 			while($rs2=mysql_fetch_array($result2)){
  		 			  $sql3="select * from zy_businessarea where id=".$rs2['parentId']."";
  		 			 // echo $sql3;
  		 			  $result3=mysql_query($sql3);
  		 			  while($rs3=mysql_fetch_array($result3)){
  		 			?>
  		 				<ul class="breadcrumb">
  		 				<li><a href="<?php echo SITE_ROOT ?>/index.php">全<?php echo $rs3['name'] ?></a> </li>&nbsp;
  		 		<?php 
  		 				$sql4="select * from zy_businessarea where parentid=".$rs3[id]."";
  		 				$result4=mysql_query($sql4);
  		 				while($rs4=mysql_fetch_array($result4)){?>
  		 				<li <?php echo $bid2==$rs4['id']?"class='current'":""; ?>><a href="<?php echo SITE_ROOT ?>/index.php?id1=<?php echo $rs4['id'];?>"><?php echo $rs4['name'] ?></a> </li>
  		 				
  		 			<?php 	} ?>
  		 			  </ul>
  		 			<?php 
  		 			   $sql5="select * from zy_businessarea where parentId=".$rs2['id']."";
  		 			   $result5=mysql_query($sql5);
  		 			 //  echo "<br/>";?>
  		 			    <ul class="breadcrumb breadcrumb2">
  		 			    <?php 
  		 			   while($rs5=mysql_fetch_array($result5)){ ?>
  		 			 
  		 			  <li <?php echo $bid3==$rs5['id']?"class='current2'":""; ?>><a href="<?php echo SITE_ROOT ?>/index.php?id2=<?php echo $rs5['id']?>"><?php echo $rs5['name'] ?></a> </li>
  		 			 
  		 				
  		 		<?php 	} ?></ul>
  		 	<?php 	}
  		 		}
  		 		}
}else if($id1>0){
  		$sql="SELECT * FROM zy_businessarea WHERE level = 1";  	
  		$result=mysql_query($sql);
  		while($rs1=mysql_fetch_array($result)){
  				?>
  				<ul class="breadcrumb">
  				<li> <a href="<?php echo SITE_ROOT ?>/index.php" >全<?php echo $rs1['name'] ?> </a> </li>&nbsp;
  			<?php 	
$sql2="select * from zy_businessarea where parentId =".$rs1['id']."";  
$result2=mysql_query($sql2);
while($rs2=mysql_fetch_array($result2)){
  						?>
  						<li <?php echo $bid2==$rs2['id']?"class='current'":""; ?> ><a href="<?php echo SITE_ROOT ?>/index.php?id1=<?php echo $rs2['id']?>"><?php echo $rs2['name'] ?></a> </li>
  			  <?php 	}	?>
  			  </ul>
  			<?php 
  		$id1=$_GET['id1'];
  		 $sql3="select * from zy_businessarea where parentId=".$id1;
  		$result3=mysql_query($sql3); ?>
  			<ul class="breadcrumb breadcrumb2">
  			<?php 
  			while($rs3=mysql_fetch_array($result3)){?>
  			
  		 	<li><a href="<?php echo SITE_ROOT ?>/index.php?id2=<?php echo $rs3['id']?>"><?php echo $rs3['name'] ?></a> </li>
  <?php }?>
  	</ul>
  <?php }}else{?>
  	<ul class="breadcrumb">
   <?php  $sql="SELECT * FROM zy_businessarea WHERE level = 1"; 
      //  echo $sql; 	
  		$result=mysql_query($sql);
  		while($rs1=mysql_fetch_array($result)){
  				$sql2="select * from zy_businessarea where parentId =".$rs1['id']."";  
  				$result2=mysql_query($sql2);?>
  				<li  class='current1'> <a href="<?php echo SITE_ROOT ?>/index.php" >全<?php echo $rs1['name'] ?> </a> </li>&nbsp;
  			<?php 	while($rs2=mysql_fetch_array($result2)){
  						?>
  						<li><a href="<?php echo SITE_ROOT ?>/index.php?id1=<?php echo $rs2['id']?>"><?php echo $rs2['name'] ?></a> </li>
  			  <?php 	}}?>
		</ul>
<?php }	?>
  
  <div class="row promoted-restaurants restaurants-row">
    <div class="span12 row-wrapper">
      <div class="row">
        <div class="category-restaurant-header with-restaurant-filter">
          <div class="row">
            <div class="span10">
              <div id="filter-btn-wrapper"> <span class="filter-btn">
                <input type="checkbox" name="filter" value="a1" />
                <span class="filter-text a1">本周推荐</span> </span> <span class="filter-btn">
                <input type="checkbox" name="filter" value="a2" />
                <span class="filter-text a2">江浙菜</span> </span> <span class="filter-btn">
                <input type="checkbox" name="filter" value="a3" />
                <span class="filter-text a3">快餐小吃</span> </span> <span class="filter-btn">
                <input type="checkbox" name="filter" value="a4" />
                <span class="filter-text a4">日韩料理</span> </span> <span class="filter-btn">
                <input type="checkbox" name="filter" value="a5" />
                <span class="filter-text a5">川菜</span> </span> <span class="filter-btn">
                <input type="checkbox" name="filter" value="a6" />
                <span class="filter-text a6">奶茶甜品</span> </span> </div>
            </div>
            <div class="span2"> </div>
          </div>
        </div>
        <div class="span12">
           <ul class="zyIndexShopList">
          <?php 
          		$id2=$_GET['id2'];
          		if($id2>0){
          		  
              					$sql="select * from zy_shop where district =".$id2." order by shop_id asc";
              				//	echo $sql;
								$rs=mysql_query($sql);
								$num=mysql_num_rows($rs);	
								$i=1;
								while($shop=mysql_fetch_array($rs)){
				?>
                <?php if(isset($_SESSION['_user'])){
                      		$is_favo=0;
                      		$result=mysql_query("select count(favoshop_id) a from zy_favoshop where user_id=".$_SESSION['_user']['user_id']." and shop_id=".$shop['shop_id']);
                      		if($result=mysql_fetch_array($result)){
                      			if($result['a']>0){
                      				$is_favo=1;
                      			}
                      		}
                      }
                   	 ?>
                <li class="<?php if(strpos($shop['shop_type'],"a1")>0){echo "a1 ";}
                 if(strpos($shop['shop_type'],"a2")>0){echo "a2 ";}
                 if(strpos($shop['shop_type'],"a3")>0){echo "a3 ";}
                 if(strpos($shop['shop_type'],"a4")>0){echo "a4 ";}
                 if(strpos($shop['shop_type'],"a5")>0){echo "a5 ";}
                 if(strpos($shop['shop_type'],"a6")>0){echo "a6";}
                ?>">
				<div class="restaurant-block book <?php if($is_favo==1){echo 'has-favor-icon';}?>" id="shop-<?php echo $shop['shop_id'];?>" rel="<?php echo $shop['shop_id'];?>">
                  <div class="favor-book">
				   <span class="favor-icon <?php if($is_favo==0){echo 'hidden';}?>"></span> 
				   <a href="javascript:void(0);" class="hover-add-favor hidden entry-favor" rel="<?php echo $shop['shop_id'];?>" >收藏</a>
				   <a href="javascript:void(0);" class="hover-un-favor hidden entry-un-favor" rel="<?php echo $shop['shop_id'];?>">取消收藏</a> 
				   </div>
                  <div class="line-one">
                    <div class="logo-wrapper">
                      <div class="logo">
					   <a href="<?php echo SITE_ROOT;?>/index_shop.php?shop_id=<?php echo $shop['shop_id'];?>" target="_blank"><img class="restaurant-logo" alt="" 
					   <?php if($shop['logo']==""){ ?>
					   src="<?php echo SITE_ROOT;?>/userfiles/shoplogo/logo.jpg"
					    <?php }else{?>
					   src="<?php echo SITE_ROOT;?><?php echo $shop['logo'];?>" <?php }?>/></a> </div>
                      <div class="deliver-time-wrapper tooltip-on" title="营业时间:<?php echo $shop['opening_hours'];?>"><!--<?php echo $shop['delivery_long'];?>分钟--></div>
                    </div>
                    <div class="info">
                      <div class="name"> <a class="restaurant-link" href="<?php echo SITE_ROOT;?>/index_shop.php?shop_id=<?php echo $shop['shop_id'];?>" target="_blank"><?php echo $shop['shop_name'];?></a> </div>
			
                      <!--<div class="status-label book">
                        <span>接受预订</span> 
                      </div>-->
                      <div class="status-desc book"> <span title="营业时间:<?php echo $shop['opening_hours'];?>">营业时间:<?php echo $shop['opening_hours'];?></span> </div>
                    </div>
                  </div>
                  <div class="hidden line-hover-dlg" id="restaurant-hover-dlg-content-10761">
                    <div class="restaurant-panel"> <span class="favor-icon hidden"></span>
                      <div class="restaurant-block">
                        <div class="line-one">
                          <div class="logo-wrapper">
                            <div class="logo"> <img class="restaurant-logo" alt="" 
							<?php if($shop['logo']==""){ ?>
					   src="<?php echo SITE_ROOT;?>/userfiles/shoplogo/logo.jpg"
					   <?php }else{?>
					   src="<?php echo SITE_ROOT;?><?php echo $shop['logo'];?>" <?php }?>/> </div>
                           <!-- <div class="deliver-time-wrapper"> <?php echo $shop['delivery_long'];?>分钟</div> -->
                          </div>
                          <div class="info">
                            <div class="name" title="<?php echo $shop['shop_name'];?>"><?php echo $shop['shop_name'];?></div>
                            <div class="flavors three-line"> 
							<?php 
					  	if(strpos($shop['shop_type'],"a1")>0){
					  		echo "本周推荐&nbsp;&nbsp;";
						}
						if(strpos($shop['shop_type'],"a2")>0){
					  		echo "江浙菜&nbsp;&nbsp;";
						}
						if(strpos($shop['shop_type'],"a3")>0){
					  		echo "快餐小吃&nbsp;&nbsp;";
						}
						if(strpos($shop['shop_type'],"a4")>0){
					  		echo "日韩料理&nbsp;&nbsp;";
						}
						if(strpos($shop['shop_type'],"a5")>0){
					  		echo "川菜&nbsp;&nbsp;";
						}
						if(strpos($shop['shop_type'],"a6")>0){
					  		echo "奶茶甜点&nbsp;&nbsp;";
						}
					  ?>  
					  </div>
                            <div class="ratings three-line">
                              <!--<div class="r9 rating-star" title="餐厅评价：4.2星"> <span class="ratings"></span> </div>
                                  <span class="rating-number">707点评 (30天内)</span> </div>-->
                            </div>
                          </div>
                        </div>
                        <div class="restaurant-more-info">
                          <!--<p class="book"><span title="接受预订，营业时间在<?php echo $shop['opening_hours'];?>开始">接受预订，营业时间在<?php echo $shop['opening_hours'];?>开始</span></p>-->
                          <div class="divider hidden"></div>
                          <!-- <ul class="icons">
                              <li> <span class="restaurant-icons chaoshipeifu" title="该餐厅参加超时赔付活动，超1小时，打8折。超过两小时免费。下雨天除外">&nbsp;</span> <span class="desc" title="">该餐厅参加超时赔付活动，超1小时，打8折。超过两小时免费。下雨天除外</span> </li>
                            </ul>-->
                          <div class="divider hidden"></div>
                          <p class="ann"><strong>公告:</strong>&nbsp;<?php echo $shop['announce'];?></p>
                         <!--   <p class="restaurant-deliver-desc"><strong>起送价:</strong>&nbsp;<?php echo $shop['start_price'];?>元. </p> -->
                          <p><strong>地址:</strong>&nbsp;<?php echo $shop['shop_address'];?></p>
                        <!--  <p class=""><strong>距离:</strong>&nbsp;<?php echo $shop['distance'];?>千米</p> -->
                          <p><strong>营业时间:</strong>&nbsp;<?php echo $shop['opening_hours'];?></p>
                          <p><strong>简介:</strong>&nbsp;<?php echo $shop['introduction'];?></p>
                        </div>
                      </div>
                    </div>
                  </div></li>
              <?php } 
              			 $id1=$_GET['id1'];
								?>
          		
          	
  		 <?php 
          				
          				}elseif($id1>0){
          					$sql_3="select * from zy_businessarea where parentId =".$id1;
          					//echo $sql_3;
          					$result_3=mysql_query($sql_3);
          					while($rs_3=mysql_fetch_array($result_3)){
          						$sql="select * from zy_shop where district =".$rs_3['id']." order by shop_id asc";
								$rs=mysql_query($sql);
								$num=mysql_num_rows($rs);	
								$i=1;
								while($shop=mysql_fetch_array($rs)){?>
          					 <?php if(isset($_SESSION['_user'])){
                      		$is_favo=0;
                      		$result=mysql_query("select count(favoshop_id) a from zy_favoshop where user_id=".$_SESSION['_user']['user_id']." and shop_id=".$shop['shop_id']);
                      		if($result=mysql_fetch_array($result)){
                      			if($result['a']>0){
                      				$is_favo=1;
                      			}
                      		}
                      }
                   	 ?>
                <li class="<?php if(strpos($shop['shop_type'],"a1")>0){echo "a1 ";}
                 if(strpos($shop['shop_type'],"a2")>0){echo "a2 ";}
                 if(strpos($shop['shop_type'],"a3")>0){echo "a3 ";}
                 if(strpos($shop['shop_type'],"a4")>0){echo "a4 ";}
                 if(strpos($shop['shop_type'],"a5")>0){echo "a5 ";}
                 if(strpos($shop['shop_type'],"a6")>0){echo "a6";}
                ?>">
				<div class="restaurant-block book <?php if($is_favo==1){echo 'has-favor-icon';}?>" id="shop-<?php echo $shop['shop_id'];?>" rel="<?php echo $shop['shop_id'];?>">
                  <div class="favor-book">
				   <span class="favor-icon <?php if($is_favo==0){echo 'hidden';}?>"></span> 
				   <a href="javascript:void(0);" class="hover-add-favor hidden entry-favor" rel="<?php echo $shop['shop_id'];?>" >收藏</a>
				   <a href="javascript:void(0);" class="hover-un-favor hidden entry-un-favor" rel="<?php echo $shop['shop_id'];?>">取消收藏</a> 
				   </div>
                  <div class="line-one">
                    <div class="logo-wrapper">
                      <div class="logo">
					   <a href="<?php echo SITE_ROOT;?>/index_shop.php?shop_id=<?php echo $shop['shop_id'];?>" target="_blank"><img class="restaurant-logo" alt="" 
					   <?php if($shop['logo']==""){ ?>
					   src="<?php echo SITE_ROOT;?>/userfiles/shoplogo/logo.jpg"
					    <?php }else{?>
					   src="<?php echo SITE_ROOT;?><?php echo $shop['logo'];?>" <?php }?>/></a> </div>
                      <div class="deliver-time-wrapper tooltip-on" title="营业时间:<?php echo $shop['opening_hours'];?>"><!--<?php echo $shop['delivery_long'];?>分钟--></div>
                    </div>
                    <div class="info">
                      <div class="name"> <a class="restaurant-link" href="<?php echo SITE_ROOT;?>/index_shop.php?shop_id=<?php echo $shop['shop_id'];?>" target="_blank"><?php echo $shop['shop_name'];?></a> </div>
			
                      <!--<div class="status-label book">
                        <span>接受预订</span> 
                      </div>-->
                      <div class="status-desc book"> <span title="营业时间:<?php echo $shop['opening_hours'];?>">营业时间:<?php echo $shop['opening_hours'];?></span> </div>
                    </div>
                  </div>
                  <div class="hidden line-hover-dlg" id="restaurant-hover-dlg-content-10761">
                    <div class="restaurant-panel"> <span class="favor-icon hidden"></span>
                      <div class="restaurant-block">
                        <div class="line-one">
                          <div class="logo-wrapper">
                            <div class="logo"> <img class="restaurant-logo" alt="" 
							<?php if($shop['logo']==""){ ?>
					   src="<?php echo SITE_ROOT;?>/userfiles/shoplogo/logo.jpg"
					   <?php }else{?>
					   src="<?php echo SITE_ROOT;?><?php echo $shop['logo'];?>" <?php }?>/> </div>
                           <!-- <div class="deliver-time-wrapper"> <?php echo $shop['delivery_long'];?>分钟</div> -->
                          </div>
                          <div class="info">
                            <div class="name" title="<?php echo $shop['shop_name'];?>"><?php echo $shop['shop_name'];?></div>
                            <div class="flavors three-line"> 
							<?php 
					  	if(strpos($shop['shop_type'],"a1")>0){
					  		echo "本周推荐&nbsp;&nbsp;";
						}
						if(strpos($shop['shop_type'],"a2")>0){
					  		echo "江浙菜&nbsp;&nbsp;";
						}
						if(strpos($shop['shop_type'],"a3")>0){
					  		echo "快餐小吃&nbsp;&nbsp;";
						}
						if(strpos($shop['shop_type'],"a4")>0){
					  		echo "日韩料理&nbsp;&nbsp;";
						}
						if(strpos($shop['shop_type'],"a5")>0){
					  		echo "川菜&nbsp;&nbsp;";
						}
						if(strpos($shop['shop_type'],"a6")>0){
					  		echo "奶茶甜点&nbsp;&nbsp;";
						}
					  ?>  
					  </div>
                            <div class="ratings three-line">
                              <!--<div class="r9 rating-star" title="餐厅评价：4.2星"> <span class="ratings"></span> </div>
                                  <span class="rating-number">707点评 (30天内)</span> </div>-->
                            </div>
                          </div>
                        </div>
                        <div class="restaurant-more-info">
                          <!--<p class="book"><span title="接受预订，营业时间在<?php echo $shop['opening_hours'];?>开始">接受预订，营业时间在<?php echo $shop['opening_hours'];?>开始</span></p>-->
                          <div class="divider hidden"></div>
                          <!-- <ul class="icons">
                              <li> <span class="restaurant-icons chaoshipeifu" title="该餐厅参加超时赔付活动，超1小时，打8折。超过两小时免费。下雨天除外">&nbsp;</span> <span class="desc" title="">该餐厅参加超时赔付活动，超1小时，打8折。超过两小时免费。下雨天除外</span> </li>
                            </ul>-->
                          <div class="divider hidden"></div>
                          <p class="ann"><strong>公告:</strong>&nbsp;<?php echo $shop['announce'];?></p>
                         <!--   <p class="restaurant-deliver-desc"><strong>起送价:</strong>&nbsp;<?php echo $shop['start_price'];?>元. </p> -->
                          <p><strong>地址:</strong>&nbsp;<?php echo $shop['shop_address'];?></p>
                        <!--  <p class=""><strong>距离:</strong>&nbsp;<?php echo $shop['distance'];?>千米</p> -->
                          <p><strong>营业时间:</strong>&nbsp;<?php echo $shop['opening_hours'];?></p>
                          <p><strong>简介:</strong>&nbsp;<?php echo $shop['introduction'];?></p>
                        </div>
                      </div>
                    </div>
                  </div></li>
              <?php } 
              			  }
              			}else{
              					$sql="select * from zy_shop order by shop_id asc";
								$rs=mysql_query($sql);
								$num=mysql_num_rows($rs);	
								$i=1;
								while($shop=mysql_fetch_array($rs)){
				?>
                <?php if(isset($_SESSION['_user'])){
                      		$is_favo=0;
                      		$result=mysql_query("select count(favoshop_id) a from zy_favoshop where user_id=".$_SESSION['_user']['user_id']." and shop_id=".$shop['shop_id']);
                      		if($result=mysql_fetch_array($result)){
                      			if($result['a']>0){
                      				$is_favo=1;
                      			}
                      		}
                      }
                   	 ?>
                <li class="<?php if(strpos($shop['shop_type'],"a1")>0){echo "a1 ";}
                 if(strpos($shop['shop_type'],"a2")>0){echo "a2 ";}
                 if(strpos($shop['shop_type'],"a3")>0){echo "a3 ";}
                 if(strpos($shop['shop_type'],"a4")>0){echo "a4 ";}
                 if(strpos($shop['shop_type'],"a5")>0){echo "a5 ";}
                 if(strpos($shop['shop_type'],"a6")>0){echo "a6";}
                ?>">
				<div class="restaurant-block book <?php if($is_favo==1){echo 'has-favor-icon';}?>" id="shop-<?php echo $shop['shop_id'];?>" rel="<?php echo $shop['shop_id'];?>">
                  <div class="favor-book">
				   <span class="favor-icon <?php if($is_favo==0){echo 'hidden';}?>"></span> 
				   <a href="javascript:void(0);" class="hover-add-favor hidden entry-favor" rel="<?php echo $shop['shop_id'];?>" >收藏</a>
				   <a href="javascript:void(0);" class="hover-un-favor hidden entry-un-favor" rel="<?php echo $shop['shop_id'];?>">取消收藏</a> 
				   </div>
                  <div class="line-one">
                    <div class="logo-wrapper">
                      <div class="logo">
					   <a href="<?php echo SITE_ROOT;?>/index_shop.php?shop_id=<?php echo $shop['shop_id'];?>" target="_blank"><img class="restaurant-logo" alt="" 
					   <?php if($shop['logo']==""){ ?>
					   src="<?php echo SITE_ROOT;?>/userfiles/shoplogo/logo.jpg"
					    <?php }else{?>
					   src="<?php echo SITE_ROOT;?><?php echo $shop['logo'];?>" <?php }?>/></a> </div>
                      <div class="deliver-time-wrapper tooltip-on" title="营业时间:<?php echo $shop['opening_hours'];?>"><!--<?php echo $shop['delivery_long'];?>分钟--></div>
                    </div>
                    <div class="info">
                      <div class="name"> <a class="restaurant-link" href="<?php echo SITE_ROOT;?>/index_shop.php?shop_id=<?php echo $shop['shop_id'];?>" target="_blank"><?php echo $shop['shop_name'];?></a> </div>
			
                      <!--<div class="status-label book">
                        <span>接受预订</span> 
                      </div>-->
                      <div class="status-desc book"> <span title="营业时间:<?php echo $shop['opening_hours'];?>">营业时间:<?php echo $shop['opening_hours'];?></span> </div>
                    </div>
                  </div>
                  <div class="hidden line-hover-dlg" id="restaurant-hover-dlg-content-10761">
                    <div class="restaurant-panel"> <span class="favor-icon hidden"></span>
                      <div class="restaurant-block">
                        <div class="line-one">
                          <div class="logo-wrapper">
                            <div class="logo"> <img class="restaurant-logo" alt="" 
							<?php if($shop['logo']==""){ ?>
					   src="<?php echo SITE_ROOT;?>/userfiles/shoplogo/logo.jpg"
					   <?php }else{?>
					   src="<?php echo SITE_ROOT;?><?php echo $shop['logo'];?>" <?php }?>/> </div>
                           <!-- <div class="deliver-time-wrapper"> <?php echo $shop['delivery_long'];?>分钟</div> -->
                          </div>
                          <div class="info">
                            <div class="name" title="<?php echo $shop['shop_name'];?>"><?php echo $shop['shop_name'];?></div>
                            <div class="flavors three-line"> 
							<?php 
					  	if(strpos($shop['shop_type'],"a1")>0){
					  		echo "本周推荐&nbsp;&nbsp;";
						}
						if(strpos($shop['shop_type'],"a2")>0){
					  		echo "江浙菜&nbsp;&nbsp;";
						}
						if(strpos($shop['shop_type'],"a3")>0){
					  		echo "快餐小吃&nbsp;&nbsp;";
						}
						if(strpos($shop['shop_type'],"a4")>0){
					  		echo "日韩料理&nbsp;&nbsp;";
						}
						if(strpos($shop['shop_type'],"a5")>0){
					  		echo "川菜&nbsp;&nbsp;";
						}
						if(strpos($shop['shop_type'],"a6")>0){
					  		echo "奶茶甜点&nbsp;&nbsp;";
						}
					  ?>  
					  </div>
                            <div class="ratings three-line">
                              <!--<div class="r9 rating-star" title="餐厅评价：4.2星"> <span class="ratings"></span> </div>
                                  <span class="rating-number">707点评 (30天内)</span> </div>-->
                            </div>
                          </div>
                        </div>
                        <div class="restaurant-more-info">
                          <!--<p class="book"><span title="接受预订，营业时间在<?php echo $shop['opening_hours'];?>开始">接受预订，营业时间在<?php echo $shop['opening_hours'];?>开始</span></p>-->
                          <div class="divider hidden"></div>
                          <!-- <ul class="icons">
                              <li> <span class="restaurant-icons chaoshipeifu" title="该餐厅参加超时赔付活动，超1小时，打8折。超过两小时免费。下雨天除外">&nbsp;</span> <span class="desc" title="">该餐厅参加超时赔付活动，超1小时，打8折。超过两小时免费。下雨天除外</span> </li>
                            </ul>-->
                          <div class="divider hidden"></div>
                          <p class="ann"><strong>公告:</strong>&nbsp;<?php echo $shop['announce'];?></p>
                         <!--   <p class="restaurant-deliver-desc"><strong>起送价:</strong>&nbsp;<?php echo $shop['start_price'];?>元. </p> -->
                          <p><strong>地址:</strong>&nbsp;<?php echo $shop['shop_address'];?></p>
                        <!--  <p class=""><strong>距离:</strong>&nbsp;<?php echo $shop['distance'];?>千米</p> -->
                          <p><strong>营业时间:</strong>&nbsp;<?php echo $shop['opening_hours'];?></p>
                          <p><strong>简介:</strong>&nbsp;<?php echo $shop['introduction'];?></p>
                        </div>
                      </div>
                    </div>
                  </div></li>
              <?php } 
              			
  					
								}?>
            </tbody>
          </table>
        </div>
      </div>
    </div>
  </div>
  <div id="modal-add-favor" class="modal hide fade" style="display: none; ">
    <div class="modal-header"> <a href="#" class="close">×</a>
      <h3>收藏你喜欢的餐厅</h3>
    </div>
    <div class="modal-body"> </div>
    <div class="modal-footer"> <a href="#" class="btn btn-yellow complete">完成收藏</a> </div>
  </div>
  <div id="copy_dlg_restaurant" class="restaurant-hover-dlg right hidden">
    <div class="wrapper dark_shadow">
      <div class="callout_tip"></div>
      <div class="detail"> </div>
    </div>
  </div>
  <div class="modal hide fade overtime-payment" id="overtime_payment">
    <div class="modal-header"> <a class="close" data-dismiss="modal">x</a>
      <h3>超时赔付</h3>
    </div>
    <div class="modal-body">
      <div class="left-colum">
        <form action="/misc/overtime_payment" method="post" id="overtime_payment_form">
          <fieldset>
          <div class="control-group">
            <div class="controls"> <span class="file"></span>
              <input type="text" name="overtime_payment[order_id]" id="overtime_payment_order" placeholder="超时的饿单号"/>
            </div>
          </div>
          <!--end control-group-->
          <div class="control-group">
            <div class="controls"> <span class="phone"></span>
              <input type="text" name="overtime_payment[mobilephone]" id="overtime_payment_phone" placeholder="您的手机号码"/>
            </div>
          </div>
          <!--end control-group-->
          <div class="control-group">
            <div class="controls"> <span class="pencil"></span>
              <textarea rows="5" cols="30" id="overtime_payment" name="overtime_payment[content]" placeholder="您的反馈留言"></textarea>
            </div>
          </div>
          <!--end control-group-->
          <a href="/profile/order" class="btn">饿单中心</a>
          <button class="btn btn-yellow" id="ensure_overtime_payment" type="button">确定</button>
          </fieldset>
        </form>
      </div>
      <!--end left-colum-->
      <div class="right-colum">
        <ul>
          <li><span class="blue"></span>如果你的点单超过39分钟，可填写下面的输入框，申请超时赔付。</li>
          <li><span class="blue"></span>确认提交后，我们会根据你填写的信息，向餐厅进行确认。两个工作日内就会有我们的工作人员联系你。</li>
          <li><span class="blue"></span>如果两个工作日内没有任何回应，可以在反馈留言页面进行投诉，我们将给你双倍的补偿。</li>
          <li><span class="orange"></span>如果你的点单在20分钟内送到，请一定要立即拍照上传新浪微博，记录下你的饿单号和心情，并@饿了么网上订餐。我们将赠送你一份礼品，让你幸运加倍~</li>
        </ul>
      </div>
      <!--end right-colum-->
    </div>
    <!--end modal-body-->
  </div>
  <!--end overtime_payment-->
  <a id="back-to-top" href="javascript:void(0);">
  <div class="backtotop"></div>
  </a> </div>
  </body>
  </html>
<?php include (dirname(__FILE__)."/include/footer.php"); ?>
